import Vue from 'vue'
import Router from 'vue-router'
import discoverMusic from '@/components/discoverMusic/discoverMusic'
import myMusic from '@/components/myMusic/myMusic'
import friend from '@/components/friend/friend'
import mall from '@/components/mall/mall'
import musician from '@/components/musician/musician'
import download from '@/components/download/download'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper)
Vue.use(Router)
const routes = [
  {
    path: '/',
    redirect: '/discoverMusic',
    component: discoverMusic
  },
  {
    path: '/discoverMusic',
    component: discoverMusic
  },
  {
    path: '/myMusic',
    component: myMusic
  },
  {
    path: '/friend',
    component: friend
  },
  {
    path: '/mall',
    component: mall
  },
  {
    path: '/musician',
    component: musician
  },
  {
    path: '/download',
    component: download
  }
]
const router = new Router({
  linkActiveClass: 'active',
  routes: routes
})
export default router
